ioemu: Fix issues when passthrough device is hot-removed from HVM domain.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Jul 2008 10:16:48 +0000 (11:16 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Jul 2008 10:16:48 +0000 (11:16 +0100)
commit004670e3ca847ff84fd8b4a76dae094b8220f8e4
tree9f7b05510203eb7b81f3e590844308e3288a4319
parentd45e39c59085e0ca93317bff5551a0e8a4d7efbb
ioemu: Fix issues when passthrough device is hot-removed from HVM domain.

When passthrough device is hot removed from HVM domain by "xm
pci-detach" command, following issues occur. The patch fixes them.

   - Allocated memory is not deallocated.
   - Unbind interrupt with invalid interrupt pin.
   - MSI-X memory mapped register area is not unmapped.

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
tools/ioemu/hw/pass-through.c
tools/ioemu/hw/pt-msi.c
tools/ioemu/hw/pt-msi.h